package com.net

import com.google.gson.annotations.SerializedName

/**
 * Time:3/18/21 10:05 PM
 * Author:
 * Description:
 */
open class Direct<T>(
    @SerializedName("code") val code: Int = 0,
    @SerializedName("msg") val msg: String = "",
    @SerializedName("data") val data: T
)

class LoginDirect(token: String) : Direct<String>(data = token)
typealias DirectNone = Direct<Unit>

class LogRet(
    @SerializedName("code") val code: Int = 0,
    @SerializedName("file_url") val file_url: String)

